package com.hrpmar.controller;

import com.hrpmar.controller.vo.Series;
import com.hrpmar.service.StatisticsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by c on 2017-12-04.
 */
@RestController
@RequestMapping("/Statis")
public class StatisticsRestController {

    @Resource
    private StatisticsService statisticsService;

    @RequestMapping("/drugStatis")
    public List<Series> getDrugSeries(){
        List<Series> list = new ArrayList<Series>();
        list = statisticsService.searchDrugCountStas();
        return list;
    }

}
